<template>
	<view class="contain">
	
	<view class="container">
		<!-- 会员等级和头像 -->
		<view class="vip_cont">
			<view class="vip_info">
				<view class="header">
					<image src="../../static/image/header3.png" mode="" class="header_img"></image>
				</view>
				<view class="vip_class">
					<view class="class_title">
				<!-- 		钻石等级图标 -->
						<view class="grade_icon">
							<image src="../../static/icon/vipIcon.png" mode=""></image>
						</view>
						<text class="grade_title">钻石特级会员</text>
					</view>
					<view class="vip_grade">
						福利政策 全部级别
					</view>
					
				</view>
				<!-- 点击出现二维码 -->
			
			</view>

			<view class="qr_code">
				<image src="../../static/icon/markIcon.png" mode=""></image>
			</view>
		</view>
		<view class="wire_nav">
			<view class="nav_item" v-for="(item,index) of nav_list" :key = "index">
				<view class="nav_icon">
					<image :src="item.img" mode="" class="icon_img"></image>
				</view>
				<view class="nav_title">
					{{item.title}}
					<text v-show="item.num >0" style="color: #F8321D;">({{item.num}})</text>
				</view>
			</view>
			</view>
			<view class="tickets_cont">
				<view class="ticket_item_cont" v-for="item of 5">
					<view class="ticket_img">
						<image src="../../static/image/ticket.png" mode="" class="ticket_image"></image>
					</view>
					<view class="ticket_info">
						<view class="ticket_title">
							北欧类型全场8折优惠
						</view>
						<view class="ticket_time">
							<view class="ticket_num">
								数量：1
							</view>
							<view class="date">
								截止日期： 2020-5-20
							</view>
						</view>
						<view class="ticket_btn">
							<text style="margin-right: 35rpx;">查看规则</text>
							<text >去使用</text>
						</view>
					</view>
				</view>
			</view>
		</view>
		
	</view>
	
	
</template>

<script>
	export default {
		data() {
			return {
				nav_list:[
					{title:'福利券',img:'../../static/icon/wire_icon/wire_ticket.png',num:3},
					{title:'分享券',img:'../../static/icon/wire_icon/share_ticket.png',num:0},
					{title:'小礼物',img:'../../static/icon/wire_icon/gift.png',num:1},
					{title:'购买券',img:'../../static/icon/wire_icon/buy_ticket.png',num:0}
				]
			}
		},
		methods: {
			
		}
	}
</script>

<style scoped lang="scss">
	page{
		box-sizing: border-box;
		display: flex;
		flex-direction: column;
		height:100%
		
	}
	.contain{
		height: 100%;
		display: flex;
		width: 100%;
		box-sizing: border-box;
		flex-direction: column;
	}
	.container{
		flex: 1;
		box-sizing: border-box;
		padding: 0 30rpx;
		margin-top: 17rpx;
		background-color: #F7F7F7;
		.vip_cont{
			width: 100%;
			border-radius: 4px;
			background: #fff;
			box-sizing: border-box;
			padding: 0 22rpx 0;
			height: 148rpx;
			display: flex;
			justify-content: space-between;
			align-items: center;
			.vip_info{
				display: flex;
				height: 100%;
				align-items: center;
				justify-content: space-between;
				.header{
					width: 80rpx;
					height: 80rpx;
					.header_img{
						width: 100%;
						height: 100%;
					}
				}
				.vip_class{
					height: 100%;
					display: flex;
					margin-left: 11rpx;
					justify-content: center;
					flex-direction: column;
					.class_title{
						font-size: 28rpx;
						color: #000;
						display: flex;
						
						.grade_icon{
							width:24rpx;
							height: 24rpx;
							margin-right: 6px;
							image{
								width: 100%;
								height: 100%;
							}
						}
					}
					.vip_grade{
						color: #C8AE6E;
						font-size: 24rpx;
					}
				}
			}
			.qr_code{
				width: 36rpx;
				height: 36rpx;
				background: red;
				image{
					width: 100%;
					height: 100%;
				}
			}
		}
		.wire_nav{
			width:100%;
			margin-top: 19rpx;
			display: flex;
			height:148rpx;
			border-radius: 4px;
			box-sizing: border-box;
			padding-left: 20rpx;
			background: #fff;
			justify-content: space-between;
			box-sizing: border-box;
			.nav_item{
				display: flex;
				flex:1;
				height: 100%;
				flex-direction: column;
				justify-content: center;
				align-items: center;
				.nav_icon{
					height: 45rpx;
					width: 45rpx;
					.icon_img{
						height: 100%;
						width: 100%;
					}
				}
				.nav_title{
					margin-top: 16rpx;
					text-align: center;
					color: $font-color-base;
					font-size: 27rpx;
				}
			}
		}
		.tickets_cont{
			width: 100%;
			background-color: #fff;
			border-radius: 4px;
			display: flex;
			flex: 1;
			margin: 18rpx 0 30rpx 0;
			box-sizing: border-box;
			flex-direction: column;
			padding: 29rpx 0 0 30rpx;
			.ticket_item_cont{
				display: flex;
				justify-content: space-between;
				width: 100%;
				margin-bottom: 30rpx;
				.ticket_img{
					width: 370rpx;
					height: 133rpx;
					.ticket_image{
						width: 100%;
						height: 100%;
					}
				}
				.ticket_info{
					display: flex;
					flex-direction: column;
					margin-left: 46rpx;
					width: 100%;
					.ticket_title{
						font-size: 27rpx;
						color: #333333;
					}
					.ticket_time{
						margin-top: 8rpx;
						font-size: 20rpx;
						display: flex;
						color:#999999
					}
					.ticket_btn{
						margin-top:18rpx;
						font-size: 23rpx;
						display: flex;
						text{
							display: flex;
							width: 133rpx;
							height: 40rpx;
							justify-content: center;
							align-items: center;
							line-height: 40rpx;
							border-radius: 30rpx;
							background-color: pink;
							&:last-child{
								background-color: #F8321D;
								color: #fff;
							}
							&:first-child{
								background-color: #fff;
								border: 1px solid #ECECEC;
								color: #999999;
							}
						}
					}
				}
			}
		}
	}
</style>
